import { request } from '@/request/request.js'

//获取用户信息接口
export const getUserInfo = ()=>{
	return request({
		url:'/member/detail'
	})
}

//获取用户订单接口
export const getUserOrder =(params)=>{
	return request({
		url:'/member/orders',
		params
	})
}

//获取用户收藏课程接口
export const getCollectClass = (params)=>{
	return request({
		url:'/member/courses/like',
		params
	})
}

//获取用户消息接口
export const getUserMessage=(params)=>{
	return request({
		url:'/member/messages',
		params
	})
}